NULL means the default color state of the stage will be used, which is
what happened before.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4090>
height: global.screen_height,
});
const [, , , scale] = global.stage.get_capture_final_size(rect);
- this.content = global.stage.paint_to_content(rect, scale, Clutter.PaintFlag.NO_CURSORS);
+ this.content = global.stage.paint_to_content(rect, scale, null, Clutter.PaintFlag.NO_CURSORS);
this.opacity = 255;
this.show();
cairo_image_surface_get_data (image),
cairo_image_surface_get_stride (image),
COGL_PIXEL_FORMAT_CAIRO_ARGB32_COMPAT,
+ NULL,
paint_flags,
&error))
{
screenshot->scale = scale;
content = clutter_stage_paint_to_content (stage, &screenshot_rect, scale,
+ NULL,
CLUTTER_PAINT_FLAG_NO_CURSORS,
&error);
if (!content)